(global.webpackJsonp = global.webpackJsonp || []).push([ [ "help/list" ], {
    "00f4": function(t, e, n) {
        var r = n("65bf");
        n.n(r).a;
    },
    "65bf": function(t, e, n) {},
    "6d1d": function(t, e, n) {
        n.r(e);
        var r = n("828a"), i = n.n(r);
        for (var o in r) "default" !== o && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(o);
        e.default = i.a;
    },
    "73b9": function(t, e, n) {
        n.r(e);
        var r = n("da75"), i = n("6d1d");
        for (var o in i) "default" !== o && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(o);
        n("00f4");
        var a = n("f0c5"), u = Object(a.a)(i.default, r.b, r.c, !1, null, "5b1550c2", null, !1, r.a, void 0);
        e.default = u.exports;
    },
    "828a": function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var r = n("a71e"), i = n("26cb"), o = n("72c7"), a = n("8434"), u = n("b806"), c = (n("db8f"), 
            function(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }(n("801c")));
            function s(t) {
                return function(t) {
                    if (Array.isArray(t)) return f(t);
                }(t) || function(t) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t);
                }(t) || function(t, e) {
                    if (t) {
                        if ("string" == typeof t) return f(t, e);
                        var n = Object.prototype.toString.call(t).slice(8, -1);
                        return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? f(t, e) : void 0;
                    }
                }(t) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function f(t, e) {
                (null == e || e > t.length) && (e = t.length);
                for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
                return r;
            }
            function l(t, e) {
                var n = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var r = Object.getOwnPropertySymbols(t);
                    e && (r = r.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), n.push.apply(n, r);
                }
                return n;
            }
            function d(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            var p = {
                components: {},
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var n = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? l(Object(n), !0).forEach(function(e) {
                            d(t, e, n[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : l(Object(n)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
                        });
                    }
                    return t;
                }({}, (0, i.mapGetters)([ "configs", "mainColor", "user" ])),
                data: function() {
                    return {
                        datas: [],
                        loadingOk: !1,
                        isRequest: !1,
                        page: 1,
                        pageSize: 10,
                        isBar: ""
                    };
                },
                created: function() {
                    this.getList();
                },
                onLoad: function(t) {
                    (0, r.isEmpty)(t.pid) || c.default.commit("config/SET_PID", t.pid), (0, r.isEmpty)(decodeURIComponent(t.scene).split("pid=")[1]) || c.default.commit("config/SET_PID", decodeURIComponent(t.scene).split("pid=")[1]);
                },
                onShow: function() {
                    var t = this;
                    (0, u.init)(t).then(function(e) {
                        t.isBar = e;
                    });
                },
                onShareAppMessage: function(t) {
                    var e = (0, r.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return t.from, {
                        title: "助力活动列表",
                        path: "/help/list?pid=" + e
                    };
                },
                onShareTimeline: function() {
                    return {
                        title: "助力活动列表",
                        query: "pid=" + ((0, r.isEmpty)(this.user.id) ? 0 : this.user.id),
                        imageUrl: ""
                    };
                },
                methods: {
                    goDetail: function(t) {
                        (0, a.route)({
                            url: "/help/detail",
                            type: 1,
                            data: {
                                id: t.id
                            }
                        });
                    },
                    getList: function() {
                        var e = this, n = this;
                        this.loadingOk = !1, this.isRequest = !1;
                        var r = {
                            page: this.page,
                            pagesize: this.pageSize
                        };
                        (0, o.assistList)(r).then(function(r) {
                            var i = n.datas, o = r.list;
                            i && 1 != n.page && (o = [].concat(s(i), s(o))), o.map(function(t, e) {
                                return t.end_time = n.startTime(t.end_time);
                            }), n.datas = o, e.loadingOk = !0, e.isRequest = 0 == n.datas.length, t.stopPullDownRefresh();
                        });
                    },
                    startTime: function(t) {
                        var e = 1e3 * t - new Date().getTime(), n = parseInt(e / 864e5);
                        n = this.getLineTime(n);
                        var r = parseInt(e % 864e5 / 36e5);
                        r = this.getLineTime(r);
                        var i = parseInt(e % 36e5 / 6e4);
                        i = this.getLineTime(i);
                        var o = parseInt(e % 6e4 / 1e3);
                        return o = this.getLineTime(o), n + " 天 " + r + " 时 " + i + " 分 ";
                    },
                    getLineTime: function(t) {
                        return t < 10 ? "0" + t : t;
                    }
                },
                onPullDownRefresh: function() {
                    this.page = 1, this.datas = [], this.getList();
                },
                onReachBottom: function() {
                    this.page++, this.getList();
                }
            };
            e.default = p;
        }).call(this, n("543d").default);
    },
    da75: function(t, e, n) {
        n.d(e, "b", function() {
            return r;
        }), n.d(e, "c", function() {
            return i;
        }), n.d(e, "a", function() {});
        var r = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    e161: function(t, e, n) {
        (function(t) {
            n("1067"), r(n("66fd"));
            var e = r(n("73b9"));
            function r(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, t(e.default);
        }).call(this, n("543d").createPage);
    }
}, [ [ "e161", "common/runtime", "common/vendor" ] ] ]);